package com.industrial.system.api.factory;

import com.industrial.common.core.domain.R;
import com.industrial.common.core.web.domain.AjaxResult;
import com.industrial.system.api.RemoteLogService;
import com.industrial.system.api.RemotePremuService;
import com.industrial.system.api.RemoteUserService;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemotePremuServiceFactory implements FallbackFactory<RemotePremuService> {

    @Override
    public RemotePremuService create(Throwable cause) {
        return new RemotePremuService() {
            @Override
            public R<String> selectEnterCompanyId(String uscc) {
                return R.fail("获取ID失败");
            }
        };
    }
}
